﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Expo.Training.DataAccess.Activity
{
    public class JsonRegistrationDetailsEntity
    {
        public string RegistrationID { get; set; }
        public string ActivityID { get; set; }
        public string MemberID { get; set; }
        public string ActivityTitle { get; set; }
        public DateTime AddTime { get; set; }
        public string RealName { get; set; }
        public int? Sex { get; set; }
        public int? Age { get; set; }
        public string FamilyAddress { get; set; }
        public string ContactAddress { get; set; }
        public string Mobile { get; set; }
        public DateTime BeginDate { get; set; }
        public DateTime EndDate { get; set; }
        public string Intention { get; set; }
        public string Requirement { get; set; }
        public int? RegNumber { get; set; }
        public string Comments { get; set; }
        public int Status { get; set; }

        public static JsonRegistrationDetailsEntity Parse(ActivityRegistrationDetailsEntity _model)
        {
            JsonRegistrationDetailsEntity _jsonObject = new JsonRegistrationDetailsEntity();
            _jsonObject.RegistrationID = _model.RegistrationID.ToString();
            _jsonObject.ActivityID = _model.ActivityID.ToString();
            _jsonObject.MemberID = _model.MemberID.ToString();
            _jsonObject.ActivityTitle = _model.ActivityTitle;
            _jsonObject.AddTime = _model.AddTime;
            _jsonObject.RealName = _model.RealName;
            _jsonObject.Sex = _model.Sex;
            _jsonObject.Age = _model.Age;
            _jsonObject.FamilyAddress = _model.FamilyAddress;
            _jsonObject.ContactAddress = _model.ContactAddress;
            _jsonObject.Mobile = _model.Mobile;
            _jsonObject.BeginDate = _model.BeginDate;
            _jsonObject.EndDate = _model.EndDate;
            _jsonObject.Intention = _model.Intention;
            _jsonObject.Requirement = _model.Requirement;
            _jsonObject.RegNumber = _model.RegNumber;
            _jsonObject.Comments = _model.Comments;
            _jsonObject.Status = _model.Status;

            return _jsonObject;
        }
    }
}
